import request from '../utils/request'
import API from './constants.js'

// 登录以后返回token
export const userAsyncLogin = (user) => request({
  url: API.ADMIN_LOGIN,
  method: 'POST',
  data: user,
})

// 登出功能
export const userlogin_Out = (user) => request({
  url: API.ADMIN_LOGINOUT,
  method: 'POST',
  params: user,
})
